Skip to content

Test Uptime Kuma monitor adoption during sync - #38

Open
jay23606 wants to merge 1 commit into
Nomploy:mainfrom
jay23606:pr-go/32-uptime-kuma-tolerant-url-matching-when-a
Open

jay23606 wants to merge 1 commit into
Nomploy:mainfrom
jay23606:pr-go/32-uptime-kuma-tolerant-url-matching-when-a

Conversation

@jay23606

Copy link
Copy Markdown

Bug

Uptime Kuma sync could create a duplicate when a manual monitor used a different scheme, www prefix, or path.

Change

Sync now uses the shared normalized match-and-add operation, and the regression test verifies a matching manual monitor skips the add callback.

Testing

  • node --import tsx --test packages/server/src/services/uptime-kuma-url.test.ts
  • git diff --check

Regression test: fails on base twice (/ERR_MODULE_NOT_FOUND/), passes on fix twice (node --import tsx --test packages/server/src/services/uptime-kuma-url.test.ts)

Fixes #32

@jay23606

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uptime Kuma: tolerant URL matching when adopting existing monitors

1 participant